package com.md.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author 刘骄阳
 * 2025-01-15 15:53
 */
@ApiModel("日志树响应实体")
@Data
public class SimplifyLogsTreeDetailResponse {
  @ApiModelProperty("子集日志")
  private List<SimplifyLogsTreeDetailResponse> children;
  @ApiModelProperty("主键id")
  private Long id;
  @ApiModelProperty("业务id")
  private String dataId;

  public static SimplifyLogsTreeDetailResponse of(final Long id, final String dataId) {
    SimplifyLogsTreeDetailResponse currentDetailResponse = new SimplifyLogsTreeDetailResponse();
    currentDetailResponse.setId(id);
    currentDetailResponse.setDataId(dataId);
    return currentDetailResponse;
  }
}
